IF NOT EXISTS (SELECT 1 FROM sys.objects
					 WHERE type ='u' AND object_id = OBJECT_ID('MD3.CheckConstraints'))
BEGIN
	
	CREATE TABLE MD3.CheckConstraints
	   (Id              BIGINT IDENTITY(1,1) NOT NULL
	   ,TableName		VARCHAR(255) NOT NULL
	   ,SchemaName		VARCHAR(255) NOT NULL
	   ,ConstraintName	VARCHAR(255) NOT NULL
	   ,ConstraintExpression	VARCHAR(4000) NOT NULL
	   ,ColumnName		VARCHAR(255) NULL
	   ,AllowNoCheck BIT NOT NULL
	   ,DropConstraint BIT NOT NULL
	);
	   
	ALTER TABLE MD3.CheckConstraints ADD CONSTRAINT CheckConstraintsPK 
	PRIMARY KEY CLUSTERED (Id);
		
END 
--drop table MD3.CheckConstraints
